import { _decorator, Component, Event } from 'cc';
import { EventManager } from '../../RunTime/EventManager';
import { EVENT_ENUM, CTRL_ENUM } from '../../Enum';
const { ccclass, property } = _decorator;


@ccclass('CtrlManager')
export class CtrlManager extends Component {

  handleCtrl(evt: Event, move: string) {

    EventManager.getInstance().emit(EVENT_ENUM.PLAYER_CTRL, move as CTRL_ENUM)

  }

}
